package com.gjy.mybatis.mapper;

import com.gjy.mybatis.domain.Book;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author gjy
 * @version 1.0
 * @since 2024-12-16 19:13:43
 */
public interface BookMapper {

    @Select("select * from book")
    List<Book> selectAll();

    @Select("select * from book where id=#{id}")
    Book selectById(@Param("id") Long id);
}
